package shared;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class User implements Serializable
{
	
	public Map<String, Stock> stockList = new HashMap<String, Stock>();
	private String            name;
	private double            balance;
	
	

	@Override
	public String toString(){
		String s = "";
		for(Stock stock: stockList.values()){
			s += stock.getName()+", holding "+stock.getNumberOfShares()+ " shares \n";
		}
		return s;
	}
	public double getBalance() {
		return balance;
	}
	public void setBalance(double balance) {
		this.balance = balance;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	

}
